/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.Calendar;
import java.util.List;
import lab2.Task;


public class MainWindowModel {

    private List<Task> tasks;
    private Task selectedTask;
    private boolean showCompletedTasks;
    private boolean showCreatedByMeTasks;
    private boolean showPeriod;
    private Calendar startTime;
    private Calendar endTime;
    private String currentUser;
    
    
    public void setCurrentUser(String user){
        currentUser = user;
    }
    
    public String getCurrentUser(){
        return currentUser;
    }
    
    public void setShowCompletedTasks(boolean b) {
        showCompletedTasks = b;
    }

    public boolean getShowCompletedTasks() {
        return showCompletedTasks;
    }

    public void setCreatedByMeTasks(boolean b) {
        showCreatedByMeTasks = b;
    }

    public boolean getCreatedByMeTasks() {
        return showCreatedByMeTasks;
    }

    public void setStartTime(Calendar startTime) {
        this.startTime = startTime;
    }

    public Calendar getStartTime() {
        return startTime;
    }

    public void setEndTime(Calendar startTime) {
        this.startTime = startTime;
    }

    public Calendar getEndTime() {
        return startTime;
    }

    public void setSelectedTask(Task task) {
        selectedTask = task;
    }

    public Task getSelectedTask() {
        return selectedTask;
    }

    public void setTasks(List<Task> tasks) {
        this.tasks = tasks;
    }

    public List<Task> getTasks() {
        return tasks;
    }


    public void setShowPeriod(boolean b) {
        showPeriod = b;
    }

    public boolean getShowPeriod() {
        return showPeriod;
    }


}
